<script setup lang="ts">
import { ref } from 'vue';
import MyClassStudent from './MyClass_student/index.vue';
import MyClassTeacher from './MyClass_teacher/index.vue';

const userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}');
const type = ref(userInfo.type);
</script>

<template>
  <AppPage bg-cover>
    <MyClassTeacher v-if="type === 1" />
    <MyClassStudent v-if="type === 2" />
  </AppPage>
</template>
